use std::mem;

fn main() {
    let xs = [1, 2, 3, 4, 5];
    println!("{:?}", xs);

    let ys = [0; 200];

    println!("{}", ys.len());

    // 数组是在栈中分配的
    println!("array occupies {} bytes", mem::size_of_val(&xs));

    println!("{:?}", &xs[0..2])
}
